import request from '@/utils/request'

// 采购订单导出
export function exportPurchaseOrder(data) {
    return request({
        url: '/system/excelExport/purchaseOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 采购入库导出
export function exportPurInboundOrder(data) {
    return request({
        url: '/system/excelExport/purInboundOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 销售订单导出
export function exportSalesOrder(data) {
    return request({
        url: '/system/excelExport/exportSalesOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 销售出库导出
export function exportProductOutOrder(data) {
    return request({
        url: '/system/excelExport/exportProductOutOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 其他入库单
export function exportOtherInboundOrder(data) {
    return request({
        url: '/system/excelExport/exportOtherInboundOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 其他出库单导出
export function exportOtherOutbound(data) {
    return request({
        url: '/system/excelExport/otherInboundOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// SKU库存导出
export function exportSku(data) {
    return request({
        url: '/system/excelExport/exportSpecificationStorage',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// SPU库存导出
export function exportSpu(data) {
    return request({
        url: '/system/excelExport/exportProductStorage',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 客户资料导出
export function exportCustomer(data) {
    return request({
        url: '/system/excelExport/exportCustomer',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 供应商导出
export function exportSupplier(data) {
    return request({
        url: '/system/excelExport/exportSupplier',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 产品导出
export function exportProduct(data) {
    return request({
        url: '/system/excelExport/exportProduct',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// SKU导出
export function exportSpecifications(data) {
    return request({
        url: '/system/excelExport/exportSpecifications',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 调拨单导出
export function exportTransferOrder(data) {
    return request({
        url: '/system/excelExport/exportTransferOrder',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 模版下载
export function exportTemplate(type) {
    return request({
        url: '/system/excelExport/template?type=' + type,
        method: 'get',
        responseType: "blob",
        timeout: 30000
    })
}

// 产品导入
export function exportImportProduct(data) {
    return request({
        url: '/system/excelImport/importProduct',
        method: 'post',
        data: data,
        timeout: 300000
    })
}

// 客户导入
export function exportImportCustomer(data) {
    return request({
        url: '/system/excelImport/importCustomer',
        method: 'post',
        data: data,
        timeout: 300000
    })
}

// 产品复制
export function copyProduct(data) {
    return request({
        url: '/system/productBasicInformation/copy',
        method: 'post',
        data: data,
    })
}

// udi导出
export function exportUdi(data) {
    return request({
        url: '/system/excelExport/udiInformationExport',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 产成品入库导出
export function exportExcel(data) {
    return request({
        url: '/system/productStock/exportExcel',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}

// 复核入库导出
export function exportToBeConfirmedListExportExcel(data) {
    return request({
        url: '/system/productStock/toBeConfirmedListExportExcel ',
        method: 'post',
        data: data,
        responseType: "blob",
        timeout: 30000
    })
}